package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class HelloController {
    @GetMapping("branch")
    public Long branch(@RequestParam long uid) {
        if (uid < 0) {
            return 0L;
        } else {
            return uid;
        }
    }
}
